package cn.fsd.feignclient;

import cn.fsd.domain.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.FeignClientProperties;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

import static cn.fsd.util.FeignConstant.CustomerServiceUrl;


@FeignClient(name = "customer-server",url = CustomerServiceUrl,configuration = FeignClientProperties.class)
public interface CustomerFeignClient {
    @GetMapping("/order")//由于transfer中的add方法使用的是post请求，这里需要保证请求类型一致
    public Order findById(String id);
}
